"""Create user table

Revision ID: 8415a5182731
Revises:
Create Date: 2021-11-04 16:43:54.231524

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8415a5182731'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    op.create_table(
        "user",
        sa.Column("id", sa.Integer, primary_key=True),
        sa.Column("username", sa.String(80), unique=True, nullable=False),
        sa.Column("email", sa.String(120), unique=True, nullable=False),
    )


def downgrade():
    op.drop_table("user")
